package com.duobao.server;

class ZhaoShi {
    private String name;//武功名字
    private int hurt;//武功伤害
    private int ran ;//随机数
    public ZhaoShi(String name)
    {
        this.name = name;
    }
    public String getName() {
        return name;
    }
    public int getHurt() {
        return hurt;
    }
    public void setHurt(int hurt) {
        this.hurt = hurt;
    }
    public int getRan() {
        return ran;
    }
    public void setRan(int ran) {
        this.ran = ran;
    }
    public void setName(String name) {
        this.name = name;
    }
    public String getCDDescribe(NPC npc1,NPC npc2) {
        String describe="";

        return describe;
    }
    public String getZZDescribe(NPC npc1,NPC npc2) {
        String describe="";

        return describe;
    }
}
class JBQGZS extends ZhaoShi
{

    public JBQGZS() {
        super("基本轻功");
    }
    public String getCDDescribe(NPC npc1,NPC npc2) {
        String describe="";
        this.setRan((int)(Math.random()*2));
        if(this.getRan()==0)
        {
            if(npc1.getClass().getName().equals("Duobao3.Hero") && npc2.getClass().getName().equals("Duobao3.NPC"))
            {
                describe = "你向右一闪，躲过了这招";
            }else if(npc2.getClass().getName().equals("Duobao3.Hero") && npc1.getClass().getName().equals("Duobao3.NPC"))
            {
                describe = npc1.getName()+"向右一闪，躲过了这招";
            }
        }else
        {
            if(npc1.getClass().getName().equals("Duobao3.Hero") && npc2.getClass().getName().equals("Duobao3.NPC"))
            {
                describe = "你向左一闪，躲过了这招";
            }else if(npc2.getClass().getName().equals("Duobao3.Hero") && npc1.getClass().getName().equals("Duobao3.NPC"))
            {
                describe = npc1.getName()+"向左一闪，躲过了这招";
            }
        }

        return describe;
    }

}
class JBZJDF extends ZhaoShi
{

    public JBZJDF() {
        super("基本招架");
    }
    public String getCDDescribe(NPC npc1,NPC npc2) {
        String describe="";
        this.setRan((int)(Math.random()*8));
        if(npc1.getClass().getName().equals("Duobao3.Hero") && npc2.getClass().getName().equals("Duobao3.NPC"))
        {
            describe = "你挥动"+npc1.getZbW().getName()+",竟然挡住了攻击";
        }else if(npc2.getClass().getName().equals("Duobao3.Hero") && npc1.getClass().getName().equals("Duobao3.NPC"))
        {
            describe = npc1.getName()+"挥动"+npc1.getZbW().getName()+",竟然挡住了攻击";
        }else
        {
            describe = npc1.getName()+"挥动"+npc1.getZbW().getName()+",竟然挡住了攻击";
        }
        return describe;
    }

}
class JBDFZS extends ZhaoShi
{

    public JBDFZS() {
        super("基本刀法");
    }
    public String getCDDescribe(NPC npc1,NPC npc2) {
        String describe="";
        this.setRan((int)(Math.random()*8));
        if(npc1.getClass().getName().equals("Duobao3.Hero") && npc2.getClass().getName().equals("Duobao3.NPC"))
        {
            describe = "你挥动"+npc1.getZbW().getName()+",对准"+npc2.getName()+"的"+npc2.getYHai()[this.getRan()]+"一阵乱砍";
        }else if(npc2.getClass().getName().equals("Duobao3.Hero") && npc1.getClass().getName().equals("Duobao3.NPC"))
        {
            describe = npc1.getName()+"挥动"+npc1.getZbW().getName()+",对准你的"+npc2.getYHai()[this.getRan()]+"一阵乱砍";
        }else
        {
            describe = npc1.getName()+"挥动"+npc1.getZbW().getName()+",对准"+npc2.getName()+"的"+npc2.getYHai()[this.getRan()]+"一阵乱砍";
        }
        return describe;
    }
    public String getZZDescribe(NPC npc1,NPC npc2) {
        String describe="";
        describe = "结果「嗤」地一声划出一道血淋淋的伤口！";
        return describe;
    }
}
class JBJFZS extends ZhaoShi
{

    public JBJFZS() {
        super("基本剑法");
    }
    public String getDescribe() {
        String describe="";

        return describe;
    }

}
class JBQJZS extends ZhaoShi
{

    public JBQJZS() {
        super("基本拳脚");
    }
    public String getCDDescribe(NPC npc1,NPC npc2) {
        String describe="";
        this.setRan((int)(Math.random()*8));
        if(npc1.getClass().getName().equals("Duobao3.Hero") && npc2.getClass().getName().equals("Duobao3.NPC"))
        {
            describe = "你一拳打向"+npc2.getName()+"的"+npc2.getYHai()[this.getRan()];
        }else if(npc2.getClass().getName().equals("Duobao3.Hero") && npc1.getClass().getName().equals("Duobao3.NPC"))
        {
            describe = npc1.getName()+"一拳打向你的"+npc2.getYHai()[this.getRan()];
        }else
        {
            describe = npc1.getName()+"一拳打向"+npc2.getName()+"的"+npc2.getYHai()[this.getRan()];
        }
        return describe;
    }
    public String getZZDescribe(NPC npc1,NPC npc2) {
        String describe="";
        if(npc2.getClass().getName().equals("Duobao3.Hero") && npc1.getClass().getName().equals("Duobao3.NPC"))
        {
            describe = "你躲闪不及,结果重重地挨了一掌";
        }else
        {
            describe = npc2.getName()+"躲闪不及,结果重重地挨了一掌";
        }
        return describe;
    }
}
class JBZFZS extends ZhaoShi
{

    public JBZFZS() {
        super("基本杖法");
    }
    public String getDescribe() {
        String describe="";

        return describe;
    }

}
class CFKYDZS extends ZhaoShi
{

    public CFKYDZS() {
        super("春风快意刀普攻");
    }
    public String getCDDescribe(NPC npc1,NPC npc2) {
        String describe="";
        this.setRan((int)(Math.random()*8));
        if(npc1.getClass().getName().equals("Duobao3.Hero") && npc2.getClass().getName().equals("Duobao3.NPC"))
        {
            describe = "你身形一转,"+npc1.getZbW().getName()+"刀光不定,斩向"+npc2.getName()+"的"+npc1.getYHai()[this.getRan()];
        }else if(npc2.getClass().getName().equals("Duobao3.Hero") && npc1.getClass().getName().equals("Duobao3.NPC"))
        {
            describe = npc1.getName()+"身形一转,"+npc1.getZbW().getName()+"刀光不定,斩向你的"+npc1.getYHai()[this.getRan()];
        }else
        {
            describe = npc1.getName()+"身形一转,"+npc1.getZbW().getName()+"刀光不定,斩向"+npc2.getName()+"的"+npc1.getYHai()[this.getRan()];
        }
        return describe;
    }
    public String getZZDescribe(NPC npc1,NPC npc2) {
        String describe="";
        describe = "结果「嗤」地一声划出一道血淋淋的伤口！";
        return describe;
    }

}
class CFKYDZJ extends ZhaoShi
{

    public CFKYDZJ() {
        super("春风快意刀招架");
    }
    public String getCDDescribe(NPC npc1,NPC npc2) {
        String describe="";
        this.setRan((int)(Math.random()*8));
        if(npc1.getClass().getName().equals("Duobao3.Hero") && npc2.getClass().getName().equals("Duobao3.NPC"))
        {
            describe = "你冷笑一声"+npc1.getZbW().getName()+"轻轻挥出,对方的攻势顿时如泥牛入海";
        }else if(npc2.getClass().getName().equals("Duobao3.Hero") && npc1.getClass().getName().equals("Duobao3.NPC"))
        {
            describe = npc1.getName()+"冷笑一声"+npc1.getZbW().getName()+"轻轻挥出,你的攻势顿时如泥牛入海";
        }else
        {
            describe = npc1.getName()+"冷笑一声"+npc1.getZbW().getName()+"轻轻挥出,"+npc2.getName()+"的攻势顿时如泥牛入海";
        }
        return describe;
    }

}
class YSBRC extends ZhaoShi
{

    public YSBRC() {
        super("远山伴人痴");
    }
    public String getCDDescribe(NPC npc1,NPC npc2) {
        String describe="";
        this.setRan((int)(Math.random()*8));
        if(npc1.getClass().getName().equals("Duobao3.Hero") && npc2.getClass().getName().equals("Duobao3.NPC"))
        {
            describe = "你金刃劈风,"+npc1.getZbW().getName()+"随著一招「远山伴人痴」由下而上撩往"+npc2.getName()+"的"+npc1.getYHai()[this.getRan()];
        }else if(npc2.getClass().getName().equals("Duobao3.Hero") && npc1.getClass().getName().equals("NPC"))
        {
            describe = npc1.getName()+"金刃劈风,"+npc1.getZbW().getName()+"随著一招「远山伴人痴」由下而上撩往你的"+npc1.getYHai()[this.getRan()];
        }else
        {
            describe = npc1.getName()+"金刃劈风,"+npc1.getZbW().getName()+"随著一招「远山伴人痴」由下而上撩往"+npc2.getName()+"的"+npc1.getYHai()[this.getRan()];
        }
        return describe;
    }
    public String getZZDescribe(NPC npc1,NPC npc2) {
        String describe="";
        describe = "结果「嗤」地一声划出一道血淋淋的伤口！";
        return describe;
    }
}
class QYXRX extends ZhaoShi
{

    public QYXRX() {
        super("秋意袭人心");
    }
    public String getCDDescribe(NPC npc1,NPC npc2) {
        String describe="";
        this.setRan((int)(Math.random()*8));
        if(npc1.getClass().getName().equals("Duobao3.Hero") && npc2.getClass().getName().equals("Duobao3.NPC"))
        {
            describe = "你身影如魅,"+npc1.getZbW().getName()+"一招「秋意袭人心」斜斜飘向"+npc2.getName()+"的"+npc1.getYHai()[this.getRan()];
        }else if(npc2.getClass().getName().equals("Duobao3.Hero") && npc1.getClass().getName().equals("Duobao3.NPC"))
        {
            describe = npc1.getName()+"身影如魅,"+npc1.getZbW().getName()+"一招「秋意袭人心」斜斜飘向你的"+npc1.getYHai()[this.getRan()];
        }else
        {
            describe = npc1.getName()+"金刃劈风,"+npc1.getZbW().getName()+"随著一招「远山伴人痴」由下而上撩往"+npc2.getName()+"的"+npc1.getYHai()[this.getRan()];
        }
        return describe;
    }
    public String getZZDescribe(NPC npc1,NPC npc2) {
        String describe="";
        describe = "结果「嗤」地一声划出一道血淋淋的伤口！";
        return describe;
    }
}
class FHZRX extends ZhaoShi
{

    public FHZRX() {
        super("飞花逐人香");
    }
    public String getDescribe() {
        String describe="";

        return describe;
    }

}
class LYSRX extends ZhaoShi
{

    public LYSRX() {
        super("柳叶随人笑");
    }
    public String getDescribe() {
        String describe="";

        return describe;
    }

}
class QYRRL extends ZhaoShi
{

    public QYRRL() {
        super("倩影惹人怜");
    }
    public String getDescribe() {
        String describe="";

        return describe;
    }

}
class LXSRY extends ZhaoShi
{

    public LXSRY() {
        super("芦雪碎人影");
    }
    public String getDescribe() {
        String describe="";

        return describe;
    }

}
class CDZRY extends ZhaoShi
{

    public CDZRY() {
        super("彩蝶灼人衣");
    }
    public String getDescribe() {
        String describe="";

        return describe;
    }

}
class CFFRZ extends ZhaoShi
{

    public CFFRZ() {
        super("春风拂人醉");
    }
    public String getDescribe() {
        String describe="";

        return describe;
    }

}
class FXCRM extends ZhaoShi
{

    public FXCRM() {
        super("花香催人眠");
    }
    public String getDescribe() {
        String describe="";

        return describe;
    }

}
class XYSLY extends ZhaoShi
{

    public XYSLY() {
        super("雪阳三连月");
    }
    public String getDescribe() {
        String describe="";

        return describe;
    }

}
class HYSQD extends ZhaoShi
{

    public HYSQD() {
        super("寒雨四秋度");
    }
    public String getDescribe() {
        String describe="";

        return describe;
    }

}
class LDWFG extends ZhaoShi
{

    public LDWFG() {
        super("灵动五方鼓");
    }
    public String getDescribe() {
        String describe="";

        return describe;
    }

}
class YKLMF extends ZhaoShi
{

    public YKLMF() {
        super("云开六面风");
    }
    public String getDescribe() {
        String describe="";

        return describe;
    }

}
class FLQXD extends ZhaoShi
{

    public FLQXD() {
        super("风雷七星断");
    }
    public String getDescribe() {
        String describe="";

        return describe;
    }

}
class ZRBFD extends ZhaoShi
{

    public ZRBFD() {
        super("追日八方动");
    }
    public String getDescribe() {
        String describe="";

        return describe;
    }

}
class QHJCT extends ZhaoShi
{

    public QHJCT() {
        super("气撼九重天");
    }
    public String getDescribe() {
        String describe="";

        return describe;
    }

}
class ZJQCL extends ZhaoShi
{

    public ZJQCL() {
        super("掌惊千重浪");
    }
    public String getDescribe() {
        String describe="";

        return describe;
    }

}
class CKWLX extends ZhaoShi
{

    public CKWLX() {
        super("长空万里行");
    }
    public String getDescribe() {
        String describe="";

        return describe;
    }

}
class SCXW extends ZhaoShi
{

    public SCXW() {
        super("双成献舞");
    }
    public String getCDDescribe(NPC npc1,NPC npc2) {
        String describe="";
        this.setRan((int)(Math.random()*6));
        if(this.getRan()==0 || this.getRan()==1 || this.getRan()==2)
        {
            if(npc1.getClass().getName().equals("Duobao3.Hero") && npc2.getClass().getName().equals("Duobao3.NPC"))
            {
                describe = "你双脚微动翩然起舞,一招「双成献舞」,堪堪闪过"+npc2.getName()+"的这招!";
            }else if(npc2.getClass().getName().equals("Duobao3.Hero") && npc1.getClass().getName().equals("Duobao3.NPC"))
            {
                describe = npc1.getName()+"双脚微动翩然起舞,一招「双成献舞」,堪堪闪过你的这招";
            }else
            {
                describe = npc1.getName()+"双脚微动翩然起舞,一招「双成献舞」,堪堪闪过"+npc2.getName()+"的的这招!";
            }
        }else  if(this.getRan()==3 || this.getRan()==4)
        {
            if(npc1.getClass().getName().equals("Duobao3.Hero") && npc2.getClass().getName().equals("Duobao3.NPC"))
            {
                describe = "你一式「天女散花」,自水袖中散出一片花雨,"+npc2.getName()+"被花影迷蒙了双眼，与你擦肩而过!";
            }else if(npc2.getClass().getName().equals("Duobao3.Hero") && npc1.getClass().getName().equals("Duobao3.NPC"))
            {
                describe = npc1.getName()+"一式「天女散花」,自水袖中散出一片花雨,你被花影迷蒙了双眼，与"+npc1.getName()+"擦肩而过!";
            }else
            {
                describe = npc1.getName()+"一式「天女散花」,自水袖中散出一片花雨,"+npc2.getName()+"被花影迷蒙了双眼，与"+npc1.getName()+"擦肩而过!";
            }
        }else if(this.getRan()==5)
        {
            if(npc1.getClass().getName().equals("Duobao3.Hero") && npc2.getClass().getName().equals("Duobao3.NPC"))
            {
                describe = "你一招「嫦娥奔月」,轻轻一纵优雅的自"+npc2.getName()+"的头顶越过!";
            }else if(npc2.getClass().getName().equals("Duobao3.Hero") && npc1.getClass().getName().equals("Duobao3.NPC"))
            {
                describe = npc1.getName()+"一招「嫦娥奔月」,轻轻一纵优雅的自你的头顶越过!";
            }else
            {
                describe = npc1.getName()+"一招「嫦娥奔月」,轻轻一纵优雅的自"+npc2.getName()+"的头顶越过!";
            }
        }

        return describe;
    }
}
class HFXF extends ZhaoShi
{

    public HFXF() {
        super("慧芳下凡");
    }
    public String getDescribe() {
        String describe="";

        return describe;
    }

}
